<p id="notice"><%= notice %></p>

<h1>Listing Process Instances</h1>

<table>
  <thead>
    <tr>
      <th>Process define</th>
      <th>Creator</th>
      <th>Start at</th>
      <th>End at</th>
      <th>Status</th>
      <th>Business key</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @process_instances.each do |process_instance| %>
      <tr>
        <td><%= process_instance.process_define_id %></td>
        <td><%= process_instance.creator_id %></td>
        <td><%= process_instance.start_at %></td>
        <td><%= process_instance.end_at %></td>
        <td><%= process_instance.status %></td>
        <td><%= process_instance.business_key %></td>
        <td><%= link_to 'Show', process_instance %></td>
        <td><%= link_to 'Edit', edit_process_instance_path(process_instance) %></td>
        <td><%= link_to 'Destroy', process_instance, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Process instance', new_process_instance_path %>
